<% form_tag url_for(:controller => "advertisments",  :action => "post_free_ad" ,:step=>2) do  -%>
  <div class="registration-user-fields">
   	<div class="registration-field-text">*I am interested in:</div>
  </div>

            <div class="registration-field-value">
                <div class="registration-drop-down-button">
                	<input type="text" id="user_interests" readonly value="Select your interests" class="dropdown" onclick="$('registration-interest-drop-down').style.display='block';"/>
                </div>
                <div class="registration-interest-drop-down" id="registration-interest-drop-down">
                  <%UserType.find_by_stripped_name('non-student').categories_for_posting.each do |nonstudent_category| %>
                    <div class="registration-interest-division" id="user_type_<%=nonstudent_category.stripped_name -%>">
                    	<ul>
                            <li>
                              <div class="registration-category-header">
                                  <%=image_tag "interests-"+nonstudent_category.stripped_name+'.png',:border=>0,:width=>"21",:height=>"21" -%>
                                  &nbsp;&nbsp;<%=nonstudent_category.name -%>
                              </div>
                            </li>
                            <%nonstudent_category.sub_categories.each do |sub_category| -%>
                            <li><%=radio_button(:sub_category, :stripped_name, sub_category.stripped_name) -%><div class="registration-interest"><%= sub_category.name -%></div></li>
                            <%end%>

                        </ul>
					</div>
                   <%end%>
               </div>
        </div>
        <div style ="clear:both;margin:0"><br>&nbsp; </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My Name:
            </div>
            <div class="registration-field-value">
            		<%=text_field :nonstudent, :full_name ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My E-mail ID:
            </div>
            <div class="registration-field-value">
                  <%=text_field :nonstudent, :email ,:size => 40,:class=>"input-box",:value=> (params[:nonstudent].nil? ? ""  : params[:nonstudent][:email]) , :maxlength=>"100",:onblur=>"$('email_status').style.display='block';"+remote_function(:url => 'check_email', :with => "'email='+this.value",:update=>"email_status") -%>
            </div>
            <div class="registration-field-value" id="email_status" style="display:none;font-size:10px;">

            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	*My Mobile Number:
            </div>
            <div class="registration-field-value">
              <%=text_field :nonstudent, :mobile_no ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
        </div>
        <div class="registration-user-fields">
            <div class="registration-field-text">
            	City/Near - University Name:
            </div>
            <div class="registration-field-value">
            	<%=text_field :nonstudent, :university_email ,:size => 40,:class=>"input-box", :maxlength=>"100" -%>
            </div>
            <br/>
            <br/>
            <br/>
            <br/>
        </div>
    
        <div class="registration-button">
          <%=image_submit_tag("proceed-button.jpg")%>
       </div>
        <div class="regitration-policy">
        	By clicking the button above, you are indicating that you have read, understood, and agree to SearchMycampus's <a href="">Terms of use</a>
            <br/>
            <br/>
            * required
          
        </div>
<%end -%>
